<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="overflow-y: visible;">
    <jsp:include page="../../../include/IncludeMain.jsp"></jsp:include>
  	<body style="overflow-y: visible;" onload="changeRowColor();">
    	<table class="mainTable">
		<thead>
			<tr class="tableController">
				<th colspan="10">
					<h3>BOM明细列表</h3>
					<div class="tableControllerButton">
						<a class="button" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/bomDetail.do?act=get&shoeId=${shoeId }'; return false;"><span><img src="${pageContext.request.contextPath }/js/kui/icons/application_add.png" align="absmiddle"/>&nbsp;添加</span></a>
						<a class="button" href="javascript:void(0)" onclick="this.blur(); deleteAll(); 'return false';"><span><img src="${pageContext.request.contextPath }/js/kui/icons/application_delete.png" align="absmiddle"/>&nbsp;删除</span></a>
						<a class="button" href="javascript:void(0)" onclick="this.blur();  window.location='${pageContext.request.contextPath }/pages/business/bom.do?act=list'; return false;"><span><img src="${pageContext.request.contextPath }/js/kui/icons/anticlockwise.png" align="absmiddle"/>&nbsp;返回</span></a>
						&nbsp;&nbsp;
						
					</div>
				</th>
			</tr>
			<tr class="tableDefined">
				<td>&nbsp;</td>
				<th><h4>款号&nbsp;:</h4></th>
				<td>${shoe.style_id }&nbsp;</td>
				<th><h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;楦号&nbsp;:</h4></th>
				<td>${modelRule.model_id }&nbsp;</td>
				<th><h4>材质、颜色&nbsp;:</h4></th>
				<td>${shoe.product_color }</td>
				<th><h4>日期&nbsp;:</h4></th>
				<td>${shoe.date }</td>
			</tr>
			<tr class="tableDefined">
				<td>&nbsp;</td>
				<th><h4>客人&nbsp;:</h4></th>
				<td>${shoe.suit_type }&nbsp;</td>
				<th><h4>成品料号&nbsp;:</h4></th>
				<td>${shoe.product_id }&nbsp;</td>
				<th><h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版本&nbsp;:</h4></th>
				<td>${shoe.version }&nbsp;</td>
			</tr>
			<tr height="6px"></tr>
			<tr class="tableTitle">
				<th>
					<h3><input type="checkbox" onclick="selectAll(this);"/></h3>
				</th>
				<th>
					<h3>项目</h3>
				</th>
				<th>
					<h3>料号</h3>
				</th>
				<th>
					<h3>名称</h3>
				</th>
				<th>
					<h3>描述</h3>
				</th>
				<th>
					<h3>单位</h3>
				</th>
				<th>
					<h3>用量</h3>
				</th>
				<th>
					<h3>供应商</h3>
				</th>
				<th>
					<h3>备注</h3>
				</th>
				<th>
					<h3>操作</h3>
				</th>                         
			</tr>
		</thead>
		<tbody>
		<form action="${pageContext.request.contextPath }/pages/business/bomDetail.do?act=del&shoeId=${shoeId }" name="myForm" id="myForm" method="post">
			<c:forEach items="${pager.data}" var="bom" varStatus="s">
			<tr>
				<td width="20px"><input type="checkbox" name="id" value="${bom.id}"/></td>
				<td>${s.index+1}</td>
				<td>${bom.material_id}</td>
				<td>${bom.name}</td>
				<td>${bom.description}</td>
				<td>${bom.unit}</td>
				<td>${bom.amount}</td>
				<td title="电话：${bom.supplier_telephone }，地址：${bom.supplier_address }">${bom.supplier}</td>
				<td>${bom.comments}&nbsp;</td>
				<td>
					<a class="button-small" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/bomDetail.do?act=get&bom.id=${bom.id }&shoeId=${shoeId }'; return false;"><span>修改</span></a>
					<a class="button-small" href="javascript:void(0)" onclick="this.blur(); deleteOne('${pageContext.request.contextPath }/pages/business/bomDetail.do?act=del&id=${bom.id }&shoeId=${shoeId }'); return false;"><span>删除</span></a>
				</td>
			</tr>
			</c:forEach>
		</form>
		</tbody>
		<tfoot>
			<tr  class="tableController_bottom">
				<td colspan="11" align="center">
					<jsp:include page="../../../include/SplitPage.jsp">
						<jsp:param name="pager" value="${action.pager}"/>
					</jsp:include>
				</td>
			</tr>
		</tfoot>
	</table> 
  </body>
</html>
